﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.CompletionMaterialsEntity.Model
{
    /// <summary> 
    /// 竣工资料—卷内目录表
    /// </summary> 
    [Serializable]
    [ModelMap("Bcd_VolumeDirectory", new string[] { "Vd_ID" })]
    public class BcdVolumedirectoryInfo : BaseEntity
    {
        public BcdVolumedirectoryInfo()
        {

        }


        private string _vdId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Vd_ID", System.Data.DbType.String)]
        public string Vd_ID
        {
            get { return _vdId; }
            set
            {
                if (object.Equals(this._vdId, value) != true)
                {
                    this._vdId = value;
                    this.RaisePropertyChanged("Vd_ID");
                }
            }
        }

        private string _pftId;
        /// <summary>
        /// 项目材料类型主键
        /// </summary>
        [ColumnMap("Pft_ID", System.Data.DbType.String)]
        public string Pft_ID
        {
            get { return _pftId; }
            set
            {
                if (object.Equals(this._pftId, value) != true)
                {
                    this._pftId = value;
                    this.RaisePropertyChanged("Pft_ID");
                }
            }
        }

        private string _flId;
        /// <summary>
        /// 所属案卷ID
        /// </summary>
        [ColumnMap("Fl_ID", System.Data.DbType.String)]
        public string Fl_ID
        {
            get { return _flId; }
            set
            {
                if (object.Equals(this._flId, value) != true)
                {
                    this._flId = value;
                    this.RaisePropertyChanged("Fl_ID");
                }
            }
        }


        private string _vdOrder;
        /// <summary>
        /// 序号
        /// </summary>
        [ColumnMap("Vd_Order", System.Data.DbType.String)]
        public string Vd_Order
        {
            get { return _vdOrder; }
            set
            {
                if (object.Equals(this._vdOrder, value) != true)
                {
                    this._vdOrder = value;
                    this.RaisePropertyChanged("Vd_Order");
                }
            }
        }


        private string _vdCode;
        /// <summary>
        /// 文件编号
        /// </summary>
        [ColumnMap("Vd_Code", System.Data.DbType.String)]
        public string Vd_Code
        {
            get { return _vdCode; }
            set
            {
                if (object.Equals(this._vdCode, value) != true)
                {
                    this._vdCode = value;
                    this.RaisePropertyChanged("Vd_Code");
                }
            }
        }


        private string _vdDuty;
        /// <summary>
        /// 责任者
        /// </summary>
        [ColumnMap("Vd_Duty", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string Vd_Duty
        {
            get { return _vdDuty; }
            set
            {
                if (object.Equals(this._vdDuty, value) != true)
                {
                    this._vdDuty = value;
                    this.RaisePropertyChanged("Vd_Duty");
                }
            }
        }


        private string _vdName;
        /// <summary>
        /// 文件材料题名
        /// </summary>
        [ColumnMap("Vd_Name", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string Vd_Name
        {
            get { return _vdName; }
            set
            {
                if (object.Equals(this._vdName, value) != true)
                {
                    this._vdName = value;
                    this.RaisePropertyChanged("Vd_Name");
                }
            }
        }


        private DateTime? _vdDate;
        /// <summary>
        /// 日期
        /// </summary>
        [ColumnMap("Vd_Date", System.Data.DbType.DateTime)]
        [Required(ErrorMessage = "*")]
        public DateTime? Vd_Date
        {
            get { return _vdDate; }
            set
            {
                if (object.Equals(this._vdDate, value) != true)
                {
                    this._vdDate = value;
                    this.RaisePropertyChanged("Vd_Date");
                }
            }
        }

        private string _vdPage;
        /// <summary>
        /// 卷内页数
        /// </summary>
        [ColumnMap("Vd_Page", System.Data.DbType.String)]
        public string Vd_Page
        {
            get { return _vdPage; }
            set
            {
                if (object.Equals(this._vdPage, value) != true)
                {
                    this._vdPage = value;
                    this.RaisePropertyChanged("Vd_Page");
                }
            }
        }

        private int? _vdPageNumb;
        /// <summary>
        /// 总页数
        /// </summary>
        [ColumnMap("Vd_PageNumb", System.Data.DbType.Int32)]
        [Required(ErrorMessage = "*")]
        public int? Vd_PageNumb
        {
            get { return _vdPageNumb; }
            set
            {
                if (object.Equals(this._vdPageNumb, value) != true)
                {
                    this._vdPageNumb = value;
                    this.RaisePropertyChanged("Vd_PageNumb");
                }
            }
        }

        private string _vdRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Vd_Remark", System.Data.DbType.String)]
        public string Vd_Remark
        {
            get { return _vdRemark; }
            set
            {
                if (object.Equals(this._vdRemark, value) != true)
                {
                    this._vdRemark = value;
                    this.RaisePropertyChanged("Vd_Remark");
                }
            }
        }


        private int _vdOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Vd_OperateUserID", System.Data.DbType.Int32)]
        public int Vd_OperateUserID
        {
            get { return _vdOperateuserid; }
            set
            {
                if (object.Equals(this._vdOperateuserid, value) != true)
                {
                    this._vdOperateuserid = value;
                    this.RaisePropertyChanged("Vd_OperateUserID");
                }
            }
        }


        private string _vdOperateusername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("Vd_OperateUserName", System.Data.DbType.String)]
        public string Vd_OperateUserName
        {
            get { return _vdOperateusername; }
            set
            {
                if (object.Equals(this._vdOperateusername, value) != true)
                {
                    this._vdOperateusername = value;
                    this.RaisePropertyChanged("Vd_OperateUserName");
                }
            }
        }


        private DateTime _vdOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Vd_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Vd_OperateTime
        {
            get { return _vdOperatetime; }
            set
            {
                if (object.Equals(this._vdOperatetime, value) != true)
                {
                    this._vdOperatetime = value;
                    this.RaisePropertyChanged("Vd_OperateTime");
                }
            }
        }

        private int _assist_ID;
        /// <summary>
        /// 附件id
        /// </summary>
        [ColumnMap("Assist_ID", System.Data.DbType.Int32)]
        public int Assist_ID
        {
            get { return _assist_ID; }
            set
            {
                if (object.Equals(this._assist_ID, value) != true)
                {
                    this._assist_ID = value;
                    this.RaisePropertyChanged("Assist_ID");
                }
            }
        }

        private string _pId;
        /// <summary>
        /// 工程项目主键
        /// </summary>
        [ColumnMap("P_ID", System.Data.DbType.String)]
        public string P_ID
        {
            get { return _pId; }
            set
            {
                if (object.Equals(this._pId, value) != true)
                {
                    this._pId = value;
                    this.RaisePropertyChanged("P_ID");
                }
            }
        }

        private string _fdId;
        /// <summary>
        /// 材料类型ID
        /// </summary>
        [ColumnMap("Fd_ID", System.Data.DbType.String)]
        public string Fd_ID
        {
            get { return _fdId; }
            set
            {
                if (object.Equals(this._fdId, value) != true)
                {
                    this._fdId = value;
                    this.RaisePropertyChanged("Fd_ID");
                }
            }
        }

        private int _vdState;
        /// <summary>
        /// 审批状态(0=未审核，1=审核通过,2=已归档)
        /// </summary>
        [ColumnMap("Vd_State", System.Data.DbType.Int32)]
        public int Vd_State
        {
            get { return _vdState; }
            set
            {
                if (object.Equals(this._vdState, value) != true)
                {
                    this._vdState = value;
                    this.RaisePropertyChanged("Vd_State");
                }
            }
        }

        private string _vdCman;
        /// <summary>
        /// 审批人
        /// </summary>
        [ColumnMap("Vd_CMan", System.Data.DbType.String)]
        public string Vd_CMan
        {
            get { return _vdCman; }
            set
            {
                if (object.Equals(this._vdCman, value) != true)
                {
                    this._vdCman = value;
                    this.RaisePropertyChanged("Vd_CMan");
                }
            }
        }

        private DateTime _vdCtime;
        /// <summary>
        /// 审批时间
        /// </summary>
        [ColumnMap("Vd_CTime", System.Data.DbType.DateTime)]
        public DateTime Vd_CTime
        {
            get { return _vdCtime; }
            set
            {
                if (object.Equals(this._vdCtime, value) != true)
                {
                    this._vdCtime = value;
                    this.RaisePropertyChanged("Vd_CTime");
                }
            }
        }

        private string _flCode;
        /// <summary>
        /// 档案号
        /// </summary>
        [ColumnMap("Fl_Code", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string Fl_Code
        {
            get { return _flCode; }
            set
            {
                if (object.Equals(this._flCode, value) != true)
                {
                    this._flCode = value;
                    this.RaisePropertyChanged("Fl_Code");
                }
            }
        }


        private int _flNumb;
        /// <summary>
        /// 流水号
        /// </summary>
        [ColumnMap("Fl_Numb", System.Data.DbType.Int32)]
        [Required(ErrorMessage = "*")]
        public int Fl_Numb
        {
            get { return _flNumb; }
            set
            {
                if (object.Equals(this._flNumb, value) != true)
                {
                    this._flNumb = value;
                    this.RaisePropertyChanged("Fl_Numb");
                }
            }
        }
        /// <summary>
        /// 附件路径
        /// </summary>
        public string FilePath { get; set; }

        /// <summary>
        /// 文件个数
        /// </summary>
        public int FileCount { get; set; }
    }
}



